

public class Util {
	public static String formatTime(long ms) {  
        
        int ss = 1000;  
        int mi = ss * 60;  
        int hh = mi * 60;  
        int dd = hh * 24;  

        long day = ms / dd;  
        long hour = (ms - day * dd) / hh;  
        long minute = (ms - day * dd - hour * hh) / mi;  
        long second = (ms - day * dd - hour * hh - minute * mi) / ss;  
        long milliSecond = ms - day * dd - hour * hh - minute * mi - second * ss;  

        String strDay = day < 10 ? "0" + day : "" + day; //��  
        String strHour = hour < 10 ? "0" + hour : "" + hour;//Сʱ  
        String strMinute = minute < 10 ? "0" + minute : "" + minute;//����  
        String strSecond = second < 10 ? "0" + second : "" + second;//��  
        String strMilliSecond = milliSecond < 10 ? "0" + milliSecond : "" + milliSecond;//����  
        strMilliSecond = milliSecond < 100 ? "0" + strMilliSecond : "" + strMilliSecond;  
         
        return strMinute + " 分 " + strSecond + " 秒";  
}  
	public static String[] concat(String[] a, String[] b) {  
 	   String[] c= new String[a.length+b.length];  
 	   System.arraycopy(a, 0, c, 0, a.length);  
 	   System.arraycopy(b, 0, c, a.length, b.length);  
 	   return c;  
 }	
	
}
